package com.shitou.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.shitou.pojo.Project;

@Repository
public class ProjectDao extends BaseDao<Project, Integer> {

	public Project findLast() {
		String hql = "from Project where id = (select max(id) from Project)";
		return findUniqueByHQL(hql);
	}
}
